/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cognition.util.j2me;

import java.util.Enumeration;
import java.util.Hashtable;

/**
 *
 * @author richard
 */
public class Properties {
    public static final String PROP_IIOP_SUFFIX = "IIOPChannel-Suffix";

    private Hashtable _hash;

    /**
     * Creates a properties object that can only get its information from
     * the underlying hash table.
     */
    public Properties(){
        _hash = new Hashtable();
    }
    
    public String put(String k, String v){
        return (String)_hash.put(k, v);
    }
    public String get(String k){
        return (String)_hash.get(k);
    }
    public void clear(){
        _hash.clear();
    }
    public boolean contains(String k){
        return _hash.contains(k);
    }

    public Enumeration keys(){
        return _hash.keys();
    }
    public Enumeration elements(){
        return _hash.elements();
    }
    public void setProperty(String k, String v){
        put(k, v);
    }
}
